﻿
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using MotionIoLib;
namespace OtherDevice
{
    public static class Extension
    {
        public static bool GetInput(this string value)
        {
            bool res = IOMgr.GetInstace().ReadIoInBit($"{value}");
            return res;
        }
        public static bool GetOutput(this string value)
        {
            bool res = IOMgr.GetInstace().ReadIoOutBit($"{value}");
            return res;
        }
        public static bool SetIO(this string value,bool bStatue)
        {
            bool res = IOMgr.GetInstace().WriteIoBit($"{value}", bStatue);
            return res;
        }

    }

}